//
//  UIColor+NEDStyle.m
//  ScriptKill
//
//  Created by mac on 2020/6/19.
//  Copyright © 2020 ScriptKill. All rights reserved.
//

#import "UIColor+NEDStyle.h"

//UIColor * NEDColorTraitNameHex(NSString * name, NSString * hex){
//    if (@available(iOS 11.0, *)) {
//        return [UIColor colorNamed:name inBundle:[NSBundle NEDKitBundle] compatibleWithTraitCollection:nil];
//    } else {
//        return [UIColor ned_colorWithHexString:hex];
//    }
//}
//
//UIColor * NEDColorTraitNameRGBA(NSString * name, NEDRGBA rgba){
//    if (@available(iOS 11.0, *)) {
//        return [UIColor colorNamed:name inBundle:[NSBundle NEDKitBundle] compatibleWithTraitCollection:nil];
//    } else {
//        return [UIColor ned_colorWithRGBA:rgba];
//    }
//}

@implementation UIColor (NEDStyle)

+ (UIColor *)ned_theme{
    return [UIColor ned_colorWithHexString:@"141A32"];
}

+ (UIColor *)ned_navigationBackground{
    return [UIColor ned_colorWithHexString:@"#bac8ff"];
}

+ (UIColor *)ned_navigationTitle{
    return [UIColor ned_colorWithHexString:@"#495057"];
}
+ (UIColor *)ned_navigationButtonTitle{
    return [UIColor ned_navigationTitle];
}
+ (UIColor *)ned_navigationTint{
    return [UIColor ned_theme];
}

+ (UIColor *)ned_tabbarBackground{
    return [UIColor ned_colorWithHexString:@"#e9ecef"];
}

+ (UIColor *)ned_tabbarTitleNormal{
    return [UIColor ned_colorWithHexString:@"#adb5bd"];
}

+ (UIColor *)ned_tabbarTitleSelect{
    return [UIColor ned_colorWithHexString:@"#91a7ff"];
}
+ (UIColor *)ned_tabbarTint{
    return [UIColor ned_theme];
}

+ (UIColor *)ned_h1{
    return [UIColor ned_colorWithHexString:@"#343a40"];
}

+ (UIColor *)ned_h2{
    return [UIColor ned_colorWithHexString:@"#495057"];
}
+ (UIColor *)ned_h3{
    return [UIColor ned_colorWithHexString:@"#868e96"];
}
+ (UIColor *)ned_hint{
    return [UIColor ned_colorWithHexString:@"#adb5bd"];
}
+ (UIColor *)ned_placeholder{
    return [UIColor ned_colorWithHexString:@"#dee2e6"];
}

+ (UIColor *)ned_separator{
    return [UIColor ned_colorWithHexString:@"#dee2e6"];
}
+ (UIColor *)ned_line{
    return [UIColor ned_separator];
}
+ (UIColor *)ned_border{
    return [UIColor ned_separator];
}
+ (UIColor *)ned_background{
    return [UIColor ned_colorWithHexString:@"#f8f9fa"];
}
+ (UIColor *)ned_backgroundButton{
    return [UIColor ned_colorWithHexString:@"#bac8ff"];
}
/// 错误提示
+ (UIColor *)ned_warning{
    return UIColor.ned_red;
}
/// 系统红点
+ (UIColor *)ned_badge{
    return UIColor.ned_red;
}

/// 阴影色 黑色 0.12 透明
+ (UIColor *)ned_shadow{
    return [[UIColor ned_black] colorWithAlphaComponent:0.12];
}



+ (UIColor *)ned_blue{
    return [UIColor ned_colorWithHexString:@"2666FE"];
}
+ (UIColor *)ned_white{
    return [UIColor ned_colorWithHexString:@"FFFFFF"];
}
+ (UIColor *)ned_black{
    return [UIColor ned_colorWithHexString:@"000000"];
}
+ (UIColor *)ned_orange{
    return [UIColor ned_colorWithHexString:@"FDCC39"];
}
+ (UIColor *)ned_green{
    return [UIColor ned_colorWithHexString:@"5CC98D"];
}
+ (UIColor *)ned_red{
    return [UIColor ned_colorWithHexString:@"FB5D21"];
}
+ (UIColor *)ned_yellow{
    return [UIColor ned_colorWithHexString:@"FFB300"];
}


@end
